package com.healthcare.client.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.util.Date;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 聊天记录
 * </p>
 *
 * @author 新华医院转诊联盟
 * @since 2020-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="Message对象", description="聊天记录")
public class Message implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "聊天记录id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "会诊表id")
    private Integer groupConsultationId;

    @ApiModelProperty(value = "转诊表id")
    private Integer referralId;

    @ApiModelProperty(value = "医生id")
    private Integer doctor;

    @ApiModelProperty(value = "小助手id")
    private Integer littleHelperId;

    @ApiModelProperty(value = "是否为医生")
    private Integer isDoct;

    @ApiModelProperty(value = "是否已读")
    private Integer haveRead;

    @ApiModelProperty(value = "消息内容")
    private String content;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;


}
